package metier.entite.user;

public class User {
	
	private String userName ;
	private String password ;
	private TypeUser type ;
	private int id ;
	

	public User(String userName, String password , TypeUser type){
		this.userName = userName ;
		this.setType(type) ;
		this.password = password ;
	}
	
	public User(int id , String userName, String password , TypeUser type){
		this.userName = userName ;
		this.setType(type) ;
		this.password = password ;
		this.id = id ;
	}
	
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the type
	 */
	public TypeUser getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(TypeUser type) {
		this.type = type;
	}
	
	public String toString(){
		return "id="+this.id+"\nUserName="+this.userName+"\nType="+this.type.toString()+"\nPassword"+this.password ;
	}

}
